package lab02.Test05;

/**
 * Created by 李晓容 on 2017/10/15.
 */
public class Cube {
    //属性：长，宽，高
    double length=3;
    double width=4;
    double height=5;
    //行为：体积
    public double volume(){
        return length*width*height;
    }
    public static void main(String[] args) {
        Cube cube1=new Cube();
        System.out.println("立方体的体积是："+cube1.volume());
    }
}





